package com.ffws.content.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author JC
 * @description 最新情况实体类
 * @Date 2023-8-29 18:37
 * @Version 1.0
 */
@Data
@ToString
@TableName("new_condition")
@ApiModel("NewCondition最新情况实体类")
public class NewCondition implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键",required = true)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "标签id(即分配地区的id)",required = true)
    private Long tabId;

    @ApiModelProperty(value = "日期及时间",required = false)
    private LocalDateTime time;

    // 因为condition为关键字,所以此处使用反引号 ` 来区别
    @TableField("`condition`")
    @ApiModelProperty(value = "内容",required = false)
    private String condition;

}
